package com.cskaoyan.service;

import com.cskaoyan.bean.Admin;
import com.cskaoyan.bean.AdminListVoBean;
import com.cskaoyan.bean.MarketRole;

import com.cskaoyan.bean.Role;
import com.cskaoyan.bean.param.BaseParam;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 创建日期: 2022/05/05 18:00
 *
 * @author 孙豪骏
 */
@Service
public interface AdminService {
    List<AdminListVoBean> queryAdminListInList(String order, String sort, String username);
   List<MarketRole> queryMarketRoleList();

    void insertAdmin(AdminListVoBean admin);

   AdminListVoBean queryAdmin(AdminListVoBean admin);

    void updateAdmin(AdminListVoBean admin);

    void deleteAdmin(AdminListVoBean admin);

    List<Admin> queryAdminList(BaseParam baseParam);

    List<Role> queryRoleList(BaseParam baseParam, String name);

    void updateRole(Role role);

    void deleteRole(Role role);

    void insertRole(Role role);
}
